package com.shiyo.spring.basic_di.d_complexfield.bean;

import org.springframework.stereotype.Component;

import javax.inject.Inject;
import javax.inject.Named;

@Component
public class Cat {
    @Inject
    @Named("master")
    private Person master;

    @Override
    public String toString() {
        return "Cat{" +
                "master=" + master +
                '}';
    }
}
